package com.easylinkin.linkappapi.facerecognition.service.rest;

import com.google.gson.JsonObject;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;


public interface BaiduManagementClientService {

    @POST("/oauth/2.0/token")
    Call<JsonObject> accessToken(@Query(value = "client_id") String ak, @Query(value = "client_secret") String sk, @Query(value = "grant_type") String grantType);

    @POST("/rest/2.0/face/v3/faceset/user/add")
    @Headers("Content-Type: application/json")
    Call<JsonObject> facesetAdd(@Query("access_token") String accessToken, @Body JsonObject body);

    @POST("/rest/2.0/face/v3/faceset/user/delete")
    Call<JsonObject> deleteUser(@Query("access_token") String accessToken, @Body JsonObject body);

    @POST("/rest/2.0/face/v3/search")
    @Headers("Content-Type: application/json")
    Call<JsonObject> faceSearch(@Query("access_token") String accessToken, @Body JsonObject body);
}
